package Meituan;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * split方法性能测试
 * 耗时还是很明显的啊
 * @author: leiwenkang02@meituan.com
 * @date: 2018/5/28
 * @time: 20:31
 */
public class Test12 {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 40; i++) {
            for (int j = 0; j < 100; j++) {
                String str = "what_lal_say_he";
                Arrays.asList(str.split("_"));
//                String str = "" + 0;
            }
        }

        System.out.println(System.currentTimeMillis() - start);
    }
}
